package com.xbongbong.paas.service.log.crm.operation.impl;

import com.xbongbong.paas.service.log.crm.operation.AbstractCrmOperationLogHandle;
import com.xbongbong.parent.interfaces.logger.ArchiveOperationLogHandle;
import com.xbongbong.parent.interfaces.logger.PushNotifyLogHandle;
import com.xbongbong.pro.log.pojo.dto.DeletePushNotifyDTO;
import com.xbongbong.saas.enums.XbbRefTypeEnum;
import com.xbongbong.saas.enums.business.ContractEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

/**
 * @author: yingjf
 * @date: 2022/4/26 19:13
 * @description:合同操作日志处理类
 */
@Slf4j
@Service("contractOperationLogHandleImpl")
public class ContractOperationLogHandleImpl extends AbstractCrmOperationLogHandle
implements ArchiveOperationLogHandle, PushNotifyLogHandle {

    @Override
    public List<Integer> type() {
        return Arrays.asList(XbbRefTypeEnum.CONTRACT.getCode());
    }

    @Override
    public void deletePushNotify(DeletePushNotifyDTO deletePushNotifyDTO) {
        deletePushNotify(deletePushNotifyDTO, ContractEnum.NAME.getAttr());
    }
}
